// 2491
package L3;

import java.util.Scanner;

public class TestCone {
    private static void display(Cone c,String n) {
        System.out.println(String.format(
            "The floorage of %s is %.14f, and the volume is %.14f", 
        
            n, c.getArea(),c.getVolume()));
    }
    public static void main(String[] args) {
        Cone c1 = new Cone();
        Cone c2 = new Cone();
        double coneRadius = 0;
        double coneHeight = 0;
        Scanner scanner = new Scanner(System.in);
        coneRadius = scanner.nextDouble();
        c1.setRadius(coneRadius);
        coneHeight = scanner.nextDouble();
        scanner.close();
        c1.setHeight(coneHeight);
        c2.setRadius(coneRadius+1);
        c2.setHeight(coneHeight+2);

        display(c1, "c1");
        display(c2, "c2");
    }
   
}
/**
 * InnerTestCone
 */
class Cone {
    private double radius;
    private double height;
    Cone() {}
    Cone(double r, double h) {
        radius = r;
        height = h;
    }
    public void setRadius(double r) {
        radius = r;
    }
    public void setHeight(double h) {
        height = h;
    }
    public double getArea() {
        return Math.PI*radius*radius;
    }

    public double getVolume() {
        return height * getArea() * (1.0f/3.0f);
    }
}